// pages/package/radioPicker/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    isShowPicker: false,
    selectedIds:["id1"], 
    array: [{
        "id": "id1",
        "title": "row1"
      },
      {
        "id": "id2",
        "title": "row2"
      },
      {
        "id": "id3",
        "title": "row3"
      },
      {
        "id": "id4",
        "title": "row4"
      },
    ]
  },
  clickShowPicker(){
    this.setData({
      isShowPicker: true
    })
  },
  clickSumbit(e) {
    console.log("点击确定",e)
    const {selectedIds, selectedItems} = e.detail
    this.setData({
      selectedIds, 
      selectedItems,
      isShowPicker: false
    })
  },
  clickCancel(e) {
    console.log("点击取消")
    this.setData({
      isShowPicker: false
    })
  },
})